import Home from '../page/Home'
import Login from '../page/Login'
import Detail from '../page/Detail'
import My from '../page/Home/My'
import List from '../page/Home/List'
const routes = [
  {
    path: '/home',
    name: '首页',
    component: Home,
    children: [{
      path: '/home/my',
      name: '我的',
      component: My,
      Auth: true
    }, {
      path: '/home/list',
      name: '列表',
      component: List
    }]
  },
  {
    path: '/login',
    name: '登录',
    component: Login
  },
  {
    path: '/detail',
    name: '详情',
    component: Detail
  },
  {
    from: '/',
    to: '/login'
  }
]


export default routes